package gov.chinatax.ctcps.generator.dao.pojo;

import java.io.Serializable;
import java.math.BigDecimal;
import org.apache.commons.lang.builder.EqualsBuilder;
import org.apache.commons.lang.builder.HashCodeBuilder;
import org.apache.commons.lang.builder.ToStringBuilder;

/** 
 *        @hibernate.class
 *         table="NZJZ_NZJY"
 *     
*/
public class NzjzNzjy implements Serializable {

    /** identifier field */
    private String czdzbh;

    /** persistent field */
    private String nd;

    /** persistent field */
    private String zclxDm;

    /** persistent field */
    private String zffsDm;

    /** persistent field */
    private String yskmbm;

    /** nullable persistent field */
    private String zfxmbm;

    /** persistent field */
    private BigDecimal gssnjyje;

    /** persistent field */
    private BigDecimal czsndrje;

    /** persistent field */
    private BigDecimal gsjyje;

    /** persistent field */
    private BigDecimal czdrje;

    /** persistent field */
    private BigDecimal ce;

    /** persistent field */
    private String dwbh;

    /** nullable persistent field */
    private String jzBz;

    /** nullable persistent field */
    private String sbBz;

    /** nullable persistent field */
    private String sx;

    /** nullable persistent field */
    private String zt1;

    /** nullable persistent field */
    private String zt2;

    /** full constructor */
    public NzjzNzjy(String czdzbh, String nd, String zclxDm, String zffsDm, String yskmbm, String zfxmbm, BigDecimal gssnjyje, BigDecimal czsndrje, BigDecimal gsjyje, BigDecimal czdrje, BigDecimal ce, String dwbh, String jzBz, String sbBz, String sx, String zt1, String zt2) {
        this.czdzbh = czdzbh;
        this.nd = nd;
        this.zclxDm = zclxDm;
        this.zffsDm = zffsDm;
        this.yskmbm = yskmbm;
        this.zfxmbm = zfxmbm;
        this.gssnjyje = gssnjyje;
        this.czsndrje = czsndrje;
        this.gsjyje = gsjyje;
        this.czdrje = czdrje;
        this.ce = ce;
        this.dwbh = dwbh;
        this.jzBz = jzBz;
        this.sbBz = sbBz;
        this.sx = sx;
        this.zt1 = zt1;
        this.zt2 = zt2;
    }

    /** default constructor */
    public NzjzNzjy() {
    }

    /** minimal constructor */
    public NzjzNzjy(String czdzbh, String nd, String zclxDm, String zffsDm, String yskmbm, BigDecimal gssnjyje, BigDecimal czsndrje, BigDecimal gsjyje, BigDecimal czdrje, BigDecimal ce, String dwbh) {
        this.czdzbh = czdzbh;
        this.nd = nd;
        this.zclxDm = zclxDm;
        this.zffsDm = zffsDm;
        this.yskmbm = yskmbm;
        this.gssnjyje = gssnjyje;
        this.czsndrje = czsndrje;
        this.gsjyje = gsjyje;
        this.czdrje = czdrje;
        this.ce = ce;
        this.dwbh = dwbh;
    }

    /** 
     *            @hibernate.id
     *             generator-class="assigned"
     *             type="java.lang.String"
     *             column="CZDZBH"
     *         
     */
    public String getCzdzbh() {
        return this.czdzbh;
    }

    public void setCzdzbh(String czdzbh) {
        this.czdzbh = czdzbh;
    }

    /** 
     *            @hibernate.property
     *             column="ND"
     *             length="4"
     *             not-null="true"
     *         
     */
    public String getNd() {
        return this.nd;
    }

    public void setNd(String nd) {
        this.nd = nd;
    }

    /** 
     *            @hibernate.property
     *             column="ZCLX_DM"
     *             length="2"
     *             not-null="true"
     *         
     */
    public String getZclxDm() {
        return this.zclxDm;
    }

    public void setZclxDm(String zclxDm) {
        this.zclxDm = zclxDm;
    }

    /** 
     *            @hibernate.property
     *             column="ZFFS_DM"
     *             length="2"
     *             not-null="true"
     *         
     */
    public String getZffsDm() {
        return this.zffsDm;
    }

    public void setZffsDm(String zffsDm) {
        this.zffsDm = zffsDm;
    }

    /** 
     *            @hibernate.property
     *             column="YSKMBM"
     *             length="50"
     *             not-null="true"
     *         
     */
    public String getYskmbm() {
        return this.yskmbm;
    }

    public void setYskmbm(String yskmbm) {
        this.yskmbm = yskmbm;
    }

    /** 
     *            @hibernate.property
     *             column="ZFXMBM"
     *             length="50"
     *         
     */
    public String getZfxmbm() {
        return this.zfxmbm;
    }

    public void setZfxmbm(String zfxmbm) {
        this.zfxmbm = zfxmbm;
    }

    /** 
     *            @hibernate.property
     *             column="GSSNJYJE"
     *             length="16"
     *             not-null="true"
     *         
     */
    public BigDecimal getGssnjyje() {
        return this.gssnjyje;
    }

    public void setGssnjyje(BigDecimal gssnjyje) {
        this.gssnjyje = gssnjyje;
    }

    /** 
     *            @hibernate.property
     *             column="CZSNDRJE"
     *             length="16"
     *             not-null="true"
     *         
     */
    public BigDecimal getCzsndrje() {
        return this.czsndrje;
    }

    public void setCzsndrje(BigDecimal czsndrje) {
        this.czsndrje = czsndrje;
    }

    /** 
     *            @hibernate.property
     *             column="GSJYJE"
     *             length="16"
     *             not-null="true"
     *         
     */
    public BigDecimal getGsjyje() {
        return this.gsjyje;
    }

    public void setGsjyje(BigDecimal gsjyje) {
        this.gsjyje = gsjyje;
    }

    /** 
     *            @hibernate.property
     *             column="CZDRJE"
     *             length="16"
     *             not-null="true"
     *         
     */
    public BigDecimal getCzdrje() {
        return this.czdrje;
    }

    public void setCzdrje(BigDecimal czdrje) {
        this.czdrje = czdrje;
    }

    /** 
     *            @hibernate.property
     *             column="CE"
     *             length="16"
     *             not-null="true"
     *         
     */
    public BigDecimal getCe() {
        return this.ce;
    }

    public void setCe(BigDecimal ce) {
        this.ce = ce;
    }

    /** 
     *            @hibernate.property
     *             column="DWBH"
     *             length="50"
     *             not-null="true"
     *         
     */
    public String getDwbh() {
        return this.dwbh;
    }

    public void setDwbh(String dwbh) {
        this.dwbh = dwbh;
    }

    /** 
     *            @hibernate.property
     *             column="JZ_BZ"
     *             length="1"
     *         
     */
    public String getJzBz() {
        return this.jzBz;
    }

    public void setJzBz(String jzBz) {
        this.jzBz = jzBz;
    }

    /** 
     *            @hibernate.property
     *             column="SB_BZ"
     *             length="1"
     *         
     */
    public String getSbBz() {
        return this.sbBz;
    }

    public void setSbBz(String sbBz) {
        this.sbBz = sbBz;
    }

    /** 
     *            @hibernate.property
     *             column="SX"
     *             length="10"
     *         
     */
    public String getSx() {
        return this.sx;
    }

    public void setSx(String sx) {
        this.sx = sx;
    }

    /** 
     *            @hibernate.property
     *             column="ZT1"
     *             length="50"
     *         
     */
    public String getZt1() {
        return this.zt1;
    }

    public void setZt1(String zt1) {
        this.zt1 = zt1;
    }

    /** 
     *            @hibernate.property
     *             column="ZT2"
     *             length="50"
     *         
     */
    public String getZt2() {
        return this.zt2;
    }

    public void setZt2(String zt2) {
        this.zt2 = zt2;
    }

    public String toString() {
        return new ToStringBuilder(this)
            .append("czdzbh", getCzdzbh())
            .toString();
    }

    public boolean equals(Object other) {
        if ( !(other instanceof NzjzNzjy) ) return false;
        NzjzNzjy castOther = (NzjzNzjy) other;
        return new EqualsBuilder()
            .append(this.getCzdzbh(), castOther.getCzdzbh())
            .isEquals();
    }

    public int hashCode() {
        return new HashCodeBuilder()
            .append(getCzdzbh())
            .toHashCode();
    }

}
